﻿<%@ Page Title="User Info" Theme="Mobile" Language="C#" MasterPageFile="~/ProductMaster.master"
    AutoEventWireup="true" CodeBehind="UserInfo.aspx.cs" Inherits="MobileShop.UserInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="bodyContent" runat="server">
    <table style='margin: auto' cellspacing="3">
        <tr>
            <td>
                <label class='normal'>Name</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID='txtName' style='width:200px'  runat="server" ></asp:TextBox>
                <asp:RequiredFieldValidator ValidationGroup="Save" ID="require1" runat="server" ControlToValidate="txtName"
                    Display="Dynamic" CssClass="requiredField" ErrorMessage="" Text=""></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                 <label class='normal'>Email</label>
                <label class='required'>
                    *</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID='txtEmail' style='width:200px'  runat="server" ></asp:TextBox>
                <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator1" runat="server"
                    ControlToValidate="txtEmail" Display="Dynamic" CssClass="requiredField" ErrorMessage=""
                    Text=""></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator Display="Dynamic" CssClass="requiredField" ID="regexEmailValid"
                    runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    ControlToValidate="txtEmail" ErrorMessage="<br/>Invalid Email Format"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                 <label class='normal'>Phone(Tel.)</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID='txtPhone' style='width:200px'  runat="server" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                 <label class='normal'>Address</label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID='txtAddress' style='width:200px'  runat="server" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_OnClick"
                    ValidationGroup="Save" Text="Update" />
            </td>
        </tr>

        <tr>
            <td>
                <asp:Label ID="lblNote" runat="server" class='note'></asp:Label>
                <asp:Label ID="lblError" runat="server" class='required'></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
